// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import MuseUI from "muse-ui";
import 'muse-ui-loading/dist/muse-ui-loading.css'; // load css  
import "muse-ui/dist/muse-ui.css";
import Loading from 'muse-ui-loading';
import "./assets/main.css";
import Toast from 'muse-ui-toast'
import tools from "./server/tools"
import Config from "./server/Config"
Vue.use(Loading);
Vue.use(MuseUI);
Vue.use(Toast)
import store from './vuex/index.js'

Vue.config.productionTip = false;
Config.urlParams = tools.getParams()
/* eslint-disable no-new */
new Vue({
	el: "#app",
	router,
	store,
	components: { App },
	template: "<App/>",
	methods: {
    loading () {
      const loading = this.$loading({
        // ...options
      });
      setTimeout(() => {
        loading.close();
      }, 3000)
    },

  }
});
